package com.mycompany.action;

import java.util.List;

import com.mycompany.dao.UserDao;
import com.mycompany.model.User;
import com.opensymphony.xwork2.ActionSupport;



public class UserAction extends ActionSupport {
	private User user;
	private UserDao userDao;
	private List<User> users;
	
	public String add()
	{
		userDao.add(user);
		return SUCCESS;
	}
	
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public UserDao getUserDao() {
		return userDao;
	}
	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}
	public List<User> getUsers() {
		return users;
	}
	public void setUsers(List<User> users) {
		this.users = users;
	}
	
	

}
